package com.ray.pojo;

import javax.mail.search.StringTerm;

import lombok.Getter;
import lombok.Setter;

/**
 * 订单的眼镜成本Pojo类
* <p>Title: OrderCostGlassesPojo</p>  
* <p>Description: </p>  
* @author 李斌  
* @date 2018年8月6日
 */
@Getter
@Setter
public class OrderCostGlassesPojo {
	
	//订单编号
	private String orderId;
	//行号
	private String lineNo;
	//订单订单数
	private Double orderTotal;
	//feedTotal(投料数)
	private Double feedTotal;
	//物料投料数
	private Double feedCount;
	//用料金额
	private Double unitPrice;
	//眼镜成本价(投料)
	private Double glassesMoney;
	//眼镜成本价(订单成本)
	private Double glassesOrderMoney;
	
	//明细属性
	private String orderTotalDetail;
	private String feedTotalDetail;
	private String feedCountDetail;
	private String unitDetail;
	private String materialType; 
	private double peopleCost;//人工成本
	private double managerCost;//管理成本
	private double yuCost;//预设成本
	
	private String companyOrderId;
	private String factoryId;
	private String customerId;
	private String customerOrderId;
	
	private String month;//设备订单结单月份
	private String exportYuCost;
	private String exportPeopleCost;
	
	//无参构造
	public OrderCostGlassesPojo() {
		
	}
	
	//初始化
	public OrderCostGlassesPojo(FeedOrderDetailPojo feedOrderDetailPojo) {
		this.setFeedCountDetail(feedOrderDetailPojo.getFeedCount()+" "+feedOrderDetailPojo.getUnit());
		this.setFeedTotalDetail(feedOrderDetailPojo.getFeedTotal()+" 付");
		this.setLineNo(feedOrderDetailPojo.getLineNo());
		this.setOrderId(feedOrderDetailPojo.getOrderId()); 
		this.setUnitPrice(feedOrderDetailPojo.getUnitPrice()); 
		this.setMaterialType(feedOrderDetailPojo.getMaterialType());
		this.setCompanyOrderId(feedOrderDetailPojo.getCompanyOrderId());
		this.setFactoryId(feedOrderDetailPojo.getFactoryId());
		this.setCustomerId(feedOrderDetailPojo.getCustomerId());
		this.setCustomerId(feedOrderDetailPojo.getCustomerId());
	}
	

}
